Hi , I am new bee to DXL.
is it possible to have a DXL script to look for un traced requirements in different Doors modules . If yes , can anyone points me where I can look up
Thanks
Ajayf - Wed Oct 04 05:38:32 EDT 2017 |
Re: Untraced object Hello @Ajayf, the general answer is "yes, it is possible". But the question how to do this depends completely on how your company defines "traced", how it designates a "requirement" and how the "different Doors modules" differ from other modules. The general approach would be to have a loop over all relevant modules, open them, loop over all contained objects, for each object decide whether it is a requirement and if so, decide whether it is "traced" and if not, print out a warning.
There are lots of scripts and snippets in the DXL help and in this forum concerning loops over modules, opening a module, reading attributes, checking whether objects have an in- or outlinks. Try to use them as a starting oint. Usual disclaimers: first ensure that you know DOORS very well, before you start with DXL, read the DXL manual thoroughly, read example scripts, check the web for existing solutions, always work in a test database until your script is stable.
In the case that "traced" means "has in- or out-link to an object in a specific module", instead of using DXL, you could perhaps use the analysis wizard to show some attribute of a linked object and then use a filter to show all objects that have no such linked object
Regards |
Re: Untraced object Hi Thanks !
i managed to count and list all the linked Object (req) . but i cannot manage to count unlinked object (req.) . Is there any inbuilt function in DXL for it ?
Thanks |
Re: Untraced object Ajayf - Wed Oct 04 12:30:08 EDT 2017 Hi Thanks !
i managed to count and list all the linked Object (req) . but i cannot manage to count unlinked object (req.) . Is there any inbuilt function in DXL for it ?
Thanks Perhaps you can post your code, so that we can advise.. |
Re: Untraced object Mike.Scharnow - Wed Oct 04 13:11:02 EDT 2017 Perhaps you can post your code, so that we can advise..
string Id
int x=0;
int y=0;
Id = o."SourceID"
Filter f0 = hasNoLinks(linkFilterIncoming, "*")
Filter f1=attribute "_TraceTo" == "System"
Filter f2 = attribute "Object Type" == "requirement"
Filter f3 = f1&&f2&&f0
addFilter(m,f3,x,y)
print x ":\t" fullName(module(m)) "\n"
wOutKLHUntraced << Id "\t" fullName(module(m)) "\n"
I have a problem here in the code , I want to copy the ID of requirement . but it gives the ID's of whole module.
|